﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    public class ChocolateSweet : AbstractSweet  
    {
        private string _kind;

        public string GetKind()
        {
            return _kind;
        }
        public void SetKind(string k)
        {
            _kind = k;
        }

        public ChocolateSweet() : this(null)  { }
        public ChocolateSweet(string name) : this(name, 0) { }
        public ChocolateSweet(string name, double weight)
        {
            this.Name = name;
            this.Weight = weight;  
        }
    }

    public class ChocolateWithWaffle : ChocolateSweet   
    {
        private int _numberlayer;

        public int GetNamberlayer()
        {
            return _numberlayer;
        }
        public void SetNamberlayer(int n)
        {
            _numberlayer = n;
        }

        public ChocolateWithWaffle() : this(null)  { }
        public ChocolateWithWaffle(string name) : this(name, 0) { }
        public ChocolateWithWaffle(string name, double weight)
        {
            this.Name = name;
            this.Weight = weight;  
        }
    }
}
